JavaScript

A5.u.svgconnector Method

Syntax

A5.u.svg.connector()

Arguments

startobjectarray

The start location information. Either an object or an array. If an array, the values are in the order of X, Y, angle, and size.

xnumber

The X coordinate.

ynumber

The Y coordinate.

anglenumber

The starting angle.

sizenumber

The starting size.

endobjectarray

The end location information. Either an object or an array. If an array, the values are in the order of X, Y, angle, and size.

xnumber

The X coordinate.

ynumber

The Y coordinate.

anglenumber

The ending angle.

sizenumber

The ending size.

settingsobject

The settings.

typestring

The type of connector to draw. Options are "line", "step", "step-smooth" and "smooth".

stepnumberarray

The step location if using a "step" type (value between 0 and 1, 0 being at the start and 1 being at the end). An angled step can be achieved by passing in an array of two values between 0 and 1.

amountnumber

The amount of smoothing to do if the type is "smooth" or "step-smooth".

Returns

pathstringobject

The SVG path definition for the given polygon.

Description

Generate an path to connect two points.

Discussion